[INFO] cloning repository https://github.com/PositiveAltitude/BLDC-servo-v1
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PositiveAltitude/BLDC-servo-v1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPositiveAltitude%2FBLDC-servo-v1", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPositiveAltitude%2FBLDC-servo-v1'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 906cfcde57a6249a2b2891b8566ab05c7bd8e88e
[INFO] fixing PositiveAltitude/BLDC-servo-v1 against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPositiveAltitude%2FBLDC-servo-v1" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml
[INFO] started tweaking git repo https://github.com/PositiveAltitude/BLDC-servo-v1
[INFO] finished tweaking git repo https://github.com/PositiveAltitude/BLDC-servo-v1
[INFO] tweaked toml for git repo https://github.com/PositiveAltitude/BLDC-servo-v1 written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/PositiveAltitude/BLDC-servo-v1 on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/PositiveAltitude/BLDC-servo-v1 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2
[INFO] running `Command { std: "docker" "start" "2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]     Checking nb v1.1.0
[INFO] [stderr]    Compiling cortex-m v0.7.7
[INFO] [stderr]    Compiling semver v1.0.24
[INFO] [stderr]     Checking vcell v0.1.3
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]     Checking void v1.0.2
[INFO] [stderr]     Checking critical-section v1.2.0
[INFO] [stderr]    Compiling cortex-m-rt v0.7.5
[INFO] [stderr]     Checking bitfield v0.13.2
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]    Compiling defmt-macros v0.3.9
[INFO] [stderr]     Checking volatile-register v0.2.2
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling stm32g4 v0.15.1
[INFO] [stderr]     Checking nb v0.1.3
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling libm v0.2.11
[INFO] [stderr]    Compiling unicode-width v0.1.14
[INFO] [stderr]     Checking embedded-hal v0.2.7
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling cortex-m-semihosting v0.5.0
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]    Compiling defmt v0.3.8
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]     Checking gcd v2.3.0
[INFO] [stderr]     Checking static_assertions v1.1.0
[INFO] [stderr]     Checking stable_deref_trait v1.2.0
[INFO] [stderr]     Checking const-default v1.0.0
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]     Checking bare-metal v1.0.0
[INFO] [stderr]    Compiling virtue v0.0.13
[INFO] [stderr]     Checking fugit v0.3.7
[INFO] [stderr]     Checking embedded-dma v0.1.2
[INFO] [stderr]    Compiling rustc_version v0.4.1
[INFO] [stderr]     Checking linked_list_allocator v0.10.5
[INFO] [stderr]     Checking panic-halt v0.2.0
[INFO] [stderr]    Compiling bare-metal v0.2.5
[INFO] [stderr]    Compiling cast v0.2.7
[INFO] [stderr]     Checking fdcan v0.2.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]    Compiling syn v2.0.91
[INFO] [stderr]    Compiling bincode_derive v2.0.0-rc.3
[INFO] [stderr]     Checking panic-semihosting v0.6.0
[INFO] [stderr]     Checking bincode v2.0.0-rc.3
[INFO] [stderr]    Compiling svgbobdoc v0.3.0
[INFO] [stderr]     Checking rlsf v0.2.1
[INFO] [stderr]     Checking embedded-alloc v0.6.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling cortex-m-rt-macros v0.7.5
[INFO] [stderr]    Compiling serde_derive v1.0.217
[INFO] [stderr]    Compiling defmt-parser v0.3.4
[INFO] [stderr]     Checking stm32g4xx-hal v0.0.2 (https://github.com/stm32-rs/stm32g4xx-hal.git?rev=0cd4131#0cd41313)
[INFO] [stderr]     Checking bldc_esc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |     unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) }
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [optimized + debuginfo] target(s) in 35.19s
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |     unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) }
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] crater-edition-check: bldc_esc v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking bldc_esc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `bincode::error::DecodeError`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use bincode::error::DecodeError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `bincode::error::DecodeError`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use bincode::error::DecodeError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::f32::consts::PI`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use core::f32::consts::PI;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `core::f32::consts::PI`
[INFO] [stdout]   --> src/main.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use core::f32::consts::PI;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DIV_8`
[INFO] [stdout]   --> src/main.rs:23:42
[INFO] [stdout]    |
[INFO] [stdout] 23 | use stm32g4xx_hal::rcc::PllMDiv::{DIV_4, DIV_8};
[INFO] [stdout]    |                                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PllPDiv`
[INFO] [stdout]   --> src/main.rs:27:63
[INFO] [stdout]    |
[INFO] [stdout] 27 | use stm32g4xx_hal::rcc::{Config, FdCanClockSource, PllConfig, PllPDiv, Rcc, SysClockSrc};
[INFO] [stdout]    |                                                               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DataBitTiming`
[INFO] [stdout]   --> src/main.rs:30:21
[INFO] [stdout]    |
[INFO] [stdout] 30 | use fdcan::config::{DataBitTiming, NominalBitTiming};
[INFO] [stdout]    |                     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DIV_8`
[INFO] [stdout]   --> src/main.rs:23:42
[INFO] [stdout]    |
[INFO] [stdout] 23 | use stm32g4xx_hal::rcc::PllMDiv::{DIV_4, DIV_8};
[INFO] [stdout]    |                                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RxFrameInfo`
[INFO] [stdout]   --> src/main.rs:32:33
[INFO] [stdout]    |
[INFO] [stdout] 32 | use fdcan::frame::{FrameFormat, RxFrameInfo, TxFrameHeader};
[INFO] [stdout]    |                                 ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Id`
[INFO] [stdout]   --> src/main.rs:34:17
[INFO] [stdout]    |
[INFO] [stdout] 34 | use fdcan::id::{Id, StandardId};
[INFO] [stdout]    |                 ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PllPDiv`
[INFO] [stdout]   --> src/main.rs:27:63
[INFO] [stdout]    |
[INFO] [stdout] 27 | use stm32g4xx_hal::rcc::{Config, FdCanClockSource, PllConfig, PllPDiv, Rcc, SysClockSrc};
[INFO] [stdout]    |                                                               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hal::adc::AdcClaim`
[INFO] [stdout]   --> src/main.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | use hal::adc::AdcClaim;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `config::DmaConfig`
[INFO] [stdout]   --> src/main.rs:36:16
[INFO] [stdout]    |
[INFO] [stdout] 36 | use hal::dma::{config::DmaConfig, stream::DMAExt};
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DataBitTiming`
[INFO] [stdout]   --> src/main.rs:30:21
[INFO] [stdout]    |
[INFO] [stdout] 30 | use fdcan::config::{DataBitTiming, NominalBitTiming};
[INFO] [stdout]    |                     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RxFrameInfo`
[INFO] [stdout]   --> src/main.rs:32:33
[INFO] [stdout]    |
[INFO] [stdout] 32 | use fdcan::frame::{FrameFormat, RxFrameInfo, TxFrameHeader};
[INFO] [stdout]    |                                 ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Id`
[INFO] [stdout]   --> src/main.rs:34:17
[INFO] [stdout]    |
[INFO] [stdout] 34 | use fdcan::id::{Id, StandardId};
[INFO] [stdout]    |                 ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hal::adc::AdcClaim`
[INFO] [stdout]   --> src/main.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | use hal::adc::AdcClaim;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `config::DmaConfig`
[INFO] [stdout]   --> src/main.rs:36:16
[INFO] [stdout]    |
[INFO] [stdout] 36 | use hal::dma::{config::DmaConfig, stream::DMAExt};
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ClockMode`, `Clock`, `Continuous`, `Dma`, `SampleTime`, `Sequence`, and `TriggerMode`
[INFO] [stdout]   --> src/main.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 |     Clock, ClockMode, Continuous, Dma, SampleTime, Sequence, TriggerMode,
[INFO] [stdout]    |     ^^^^^  ^^^^^^^^^  ^^^^^^^^^^  ^^^  ^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ClockSource` and `Vref`
[INFO] [stdout]   --> src/main.rs:40:26
[INFO] [stdout]    |
[INFO] [stdout] 40 | use stm32g4xx_hal::adc::{ClockSource, Vref};
[INFO] [stdout]    |                          ^^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ClockMode`, `Clock`, `Continuous`, `Dma`, `SampleTime`, `Sequence`, and `TriggerMode`
[INFO] [stdout]   --> src/main.rs:38:5
[INFO] [stdout]    |
[INFO] [stdout] 38 |     Clock, ClockMode, Continuous, Dma, SampleTime, Sequence, TriggerMode,
[INFO] [stdout]    |     ^^^^^  ^^^^^^^^^  ^^^^^^^^^^  ^^^  ^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::dma::TransferExt`
[INFO] [stdout]   --> src/main.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 41 | use stm32g4xx_hal::dma::TransferExt;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ClockSource` and `Vref`
[INFO] [stdout]   --> src/main.rs:40:26
[INFO] [stdout]    |
[INFO] [stdout] 40 | use stm32g4xx_hal::adc::{ClockSource, Vref};
[INFO] [stdout]    |                          ^^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::signature::VrefCal`
[INFO] [stdout]   --> src/main.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 42 | use stm32g4xx_hal::signature::VrefCal;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::dma::TransferExt`
[INFO] [stdout]   --> src/main.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 41 | use stm32g4xx_hal::dma::TransferExt;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ReceiveOverrun`
[INFO] [stdout]   --> src/main.rs:45:41
[INFO] [stdout]    |
[INFO] [stdout] 45 | use fdcan::{FdCan, NormalOperationMode, ReceiveOverrun};
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ComparatorExt` and `self`
[INFO] [stdout]   --> src/main.rs:47:33
[INFO] [stdout]    |
[INFO] [stdout] 47 | use stm32g4xx_hal::comparator::{self, ComparatorExt, ComparatorSplit};
[INFO] [stdout]    |                                 ^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Dac1IntSig1`, `Dac1IntSig2`, `Dac2IntSig1`, and `DacOut`
[INFO] [stdout]   --> src/main.rs:48:26
[INFO] [stdout]    |
[INFO] [stdout] 48 | use stm32g4xx_hal::dac::{Dac1IntSig1, Dac1IntSig2, Dac2IntSig1, DacExt, DacOut};
[INFO] [stdout]    |                          ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num_traits::real::Real`
[INFO] [stdout]   --> src/main.rs:51:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | use num_traits::real::Real;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::signature::VrefCal`
[INFO] [stdout]   --> src/main.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 42 | use stm32g4xx_hal::signature::VrefCal;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ReceiveOverrun`
[INFO] [stdout]   --> src/main.rs:45:41
[INFO] [stdout]    |
[INFO] [stdout] 45 | use fdcan::{FdCan, NormalOperationMode, ReceiveOverrun};
[INFO] [stdout]    |                                         ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ComparatorExt` and `self`
[INFO] [stdout]   --> src/main.rs:47:33
[INFO] [stdout]    |
[INFO] [stdout] 47 | use stm32g4xx_hal::comparator::{self, ComparatorExt, ComparatorSplit};
[INFO] [stdout]    |                                 ^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Dac1IntSig1`, `Dac1IntSig2`, `Dac2IntSig1`, and `DacOut`
[INFO] [stdout]   --> src/main.rs:48:26
[INFO] [stdout]    |
[INFO] [stdout] 48 | use stm32g4xx_hal::dac::{Dac1IntSig1, Dac1IntSig2, Dac2IntSig1, DacExt, DacOut};
[INFO] [stdout]    |                          ^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num_traits::ToPrimitive`
[INFO] [stdout]   --> src/main.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | use num_traits::ToPrimitive;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num_traits::real::Real`
[INFO] [stdout]   --> src/main.rs:51:5
[INFO] [stdout]    |
[INFO] [stdout] 51 | use num_traits::real::Real;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num_traits::ToPrimitive`
[INFO] [stdout]   --> src/main.rs:52:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | use num_traits::ToPrimitive;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Tim_1_cc_1` and `Tim_1_trgo`
[INFO] [stdout]   --> src/main.rs:53:53
[INFO] [stdout]    |
[INFO] [stdout] 53 | use stm32g4xx_hal::adc::config::ExternalTrigger12::{Tim_1_cc_1, Tim_1_trgo};
[INFO] [stdout]    |                                                     ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::gpio::Speed`
[INFO] [stdout]   --> src/main.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | use stm32g4xx_hal::gpio::Speed;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Tim_1_cc_1` and `Tim_1_trgo`
[INFO] [stdout]   --> src/main.rs:53:53
[INFO] [stdout]    |
[INFO] [stdout] 53 | use stm32g4xx_hal::adc::config::ExternalTrigger12::{Tim_1_cc_1, Tim_1_trgo};
[INFO] [stdout]    |                                                     ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PWR`
[INFO] [stdout]   --> src/main.rs:56:34
[INFO] [stdout]    |
[INFO] [stdout] 56 | use stm32g4xx_hal::pac::{FDCAN1, PWR, RCC};
[INFO] [stdout]    |                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::gpio::Speed`
[INFO] [stdout]   --> src/main.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 | use stm32g4xx_hal::gpio::Speed;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::pwm::Polarity`
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 | use stm32g4xx_hal::pwm::Polarity;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PWR`
[INFO] [stdout]   --> src/main.rs:56:34
[INFO] [stdout]    |
[INFO] [stdout] 56 | use stm32g4xx_hal::pac::{FDCAN1, PWR, RCC};
[INFO] [stdout]    |                                  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::rcc::PllPDiv::DIV_9`
[INFO] [stdout]   --> src/main.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | use stm32g4xx_hal::rcc::PllPDiv::DIV_9;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::pwm::Polarity`
[INFO] [stdout]   --> src/main.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 | use stm32g4xx_hal::pwm::Polarity;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NanoSecond`
[INFO] [stdout]   --> src/main.rs:60:35
[INFO] [stdout]    |
[INFO] [stdout] 60 | use stm32g4xx_hal::time::{ExtU32, NanoSecond, RateExtU32};
[INFO] [stdout]    |                                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::rcc::PllPDiv::DIV_9`
[INFO] [stdout]   --> src/main.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 | use stm32g4xx_hal::rcc::PllPDiv::DIV_9;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::timer::Timer`
[INFO] [stdout]   --> src/main.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | use stm32g4xx_hal::timer::Timer;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NanoSecond`
[INFO] [stdout]   --> src/main.rs:60:35
[INFO] [stdout]    |
[INFO] [stdout] 60 | use stm32g4xx_hal::time::{ExtU32, NanoSecond, RateExtU32};
[INFO] [stdout]    |                                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stm32g4xx_hal::timer::Timer`
[INFO] [stdout]   --> src/main.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 | use stm32g4xx_hal::timer::Timer;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DacExt`
[INFO] [stdout]   --> src/main.rs:48:65
[INFO] [stdout]    |
[INFO] [stdout] 48 | use stm32g4xx_hal::dac::{Dac1IntSig1, Dac1IntSig2, Dac2IntSig1, DacExt, DacOut};
[INFO] [stdout]    |                                                                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stream::DMAExt`
[INFO] [stdout]   --> src/main.rs:36:35
[INFO] [stdout]    |
[INFO] [stdout] 36 | use hal::dma::{config::DmaConfig, stream::DMAExt};
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ComparatorSplit`
[INFO] [stdout]   --> src/main.rs:47:54
[INFO] [stdout]    |
[INFO] [stdout] 47 | use stm32g4xx_hal::comparator::{self, ComparatorExt, ComparatorSplit};
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `DacExt`
[INFO] [stdout]   --> src/main.rs:48:65
[INFO] [stdout]    |
[INFO] [stdout] 48 | use stm32g4xx_hal::dac::{Dac1IntSig1, Dac1IntSig2, Dac2IntSig1, DacExt, DacOut};
[INFO] [stdout]    |                                                                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `stream::DMAExt`
[INFO] [stdout]   --> src/main.rs:36:35
[INFO] [stdout]    |
[INFO] [stdout] 36 | use hal::dma::{config::DmaConfig, stream::DMAExt};
[INFO] [stdout]    |                                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ComparatorSplit`
[INFO] [stdout]   --> src/main.rs:47:54
[INFO] [stdout]    |
[INFO] [stdout] 47 | use stm32g4xx_hal::comparator::{self, ComparatorExt, ComparatorSplit};
[INFO] [stdout]    |                                                      ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut ans = p + i;
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:219:10
[INFO] [stdout]     |
[INFO] [stdout] 219 |     let (mut tim1_control, (c1, c2, c3)) = dp
[INFO] [stdout]     |          ----^^^^^^^^^^^^
[INFO] [stdout]     |          |
[INFO] [stdout]     |          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |     let mut counter = 0u32;
[INFO] [stdout]     |         ----^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |     let mut flag = false;
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:327:9
[INFO] [stdout]     |
[INFO] [stdout] 327 |     let mut sensor_read_timer = dp.TIM2;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:375:9
[INFO] [stdout]     |
[INFO] [stdout] 375 |     let mut set_point = 0u16;
[INFO] [stdout]     |         ----^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:376:9
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let mut last_orientation = 0u16;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:377:9
[INFO] [stdout]     |
[INFO] [stdout] 377 |     let mut velocity = 0u16;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gpioc`
[INFO] [stdout]    --> src/main.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |     let gpioc = dp.GPIOC.split(&mut rcc);
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gpioc`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tim1_control`
[INFO] [stdout]    --> src/main.rs:219:10
[INFO] [stdout]     |
[INFO] [stdout] 219 |     let (mut tim1_control, (c1, c2, c3)) = dp
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tim1_control`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `counter`
[INFO] [stdout]    --> src/main.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |     let mut counter = 0u32;
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flag`
[INFO] [stdout]    --> src/main.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |     let mut flag = false;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flag`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_orientation`
[INFO] [stdout]    --> src/main.rs:376:9
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let mut last_orientation = 0u16;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_orientation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `velocity`
[INFO] [stdout]    --> src/main.rs:377:9
[INFO] [stdout]     |
[INFO] [stdout] 377 |     let mut velocity = 0u16;
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d_gain`
[INFO] [stdout]    --> src/main.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 383 |     let d_gain: f32 = 0_f32;
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_d_gain`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `phase_orientation` is never read
[INFO] [stdout]    --> src/main.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |     let mut phase_orientation = 0u32;
[INFO] [stdout]     |                                 ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 536 |                 phase_orientation = (16384 + current_orientation as u32 - encoder_zero) * poles_pairs;
[INFO] [stdout]     |                 ------------------------------------------------------------------------------------- `phase_orientation` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ServoCommandFrame` is never used
[INFO] [stdout]   --> src/can_api.rs:21:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub enum ServoCommandFrame {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |     unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) }
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut ans = p + i;
[INFO] [stdout]     |             ----^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:219:10
[INFO] [stdout]     |
[INFO] [stdout] 219 |     let (mut tim1_control, (c1, c2, c3)) = dp
[INFO] [stdout]     |          ----^^^^^^^^^^^^
[INFO] [stdout]     |          |
[INFO] [stdout]     |          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |     let mut counter = 0u32;
[INFO] [stdout]     |         ----^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |     let mut flag = false;
[INFO] [stdout]     |         ----^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:327:9
[INFO] [stdout]     |
[INFO] [stdout] 327 |     let mut sensor_read_timer = dp.TIM2;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:375:9
[INFO] [stdout]     |
[INFO] [stdout] 375 |     let mut set_point = 0u16;
[INFO] [stdout]     |         ----^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:376:9
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let mut last_orientation = 0u16;
[INFO] [stdout]     |         ----^^^^^^^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:377:9
[INFO] [stdout]     |
[INFO] [stdout] 377 |     let mut velocity = 0u16;
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `gpioc`
[INFO] [stdout]    --> src/main.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |     let gpioc = dp.GPIOC.split(&mut rcc);
[INFO] [stdout]     |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_gpioc`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tim1_control`
[INFO] [stdout]    --> src/main.rs:219:10
[INFO] [stdout]     |
[INFO] [stdout] 219 |     let (mut tim1_control, (c1, c2, c3)) = dp
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tim1_control`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bldc_esc` (bin "bldc_esc") due to 1 previous error; 45 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `counter`
[INFO] [stdout]    --> src/main.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |     let mut counter = 0u32;
[INFO] [stdout]     |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flag`
[INFO] [stdout]    --> src/main.rs:283:9
[INFO] [stdout]     |
[INFO] [stdout] 283 |     let mut flag = false;
[INFO] [stdout]     |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flag`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `last_orientation`
[INFO] [stdout]    --> src/main.rs:376:9
[INFO] [stdout]     |
[INFO] [stdout] 376 |     let mut last_orientation = 0u16;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_orientation`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `velocity`
[INFO] [stdout]    --> src/main.rs:377:9
[INFO] [stdout]     |
[INFO] [stdout] 377 |     let mut velocity = 0u16;
[INFO] [stdout]     |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d_gain`
[INFO] [stdout]    --> src/main.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 383 |     let d_gain: f32 = 0_f32;
[INFO] [stdout]     |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_d_gain`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `phase_orientation` is never read
[INFO] [stdout]    --> src/main.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |     let mut phase_orientation = 0u32;
[INFO] [stdout]     |                                 ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 536 |                 phase_orientation = (16384 + current_orientation as u32 - encoder_zero) * poles_pairs;
[INFO] [stdout]     |                 ------------------------------------------------------------------------------------- `phase_orientation` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ServoCommandFrame` is never used
[INFO] [stdout]   --> src/can_api.rs:21:10
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub enum ServoCommandFrame {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/main.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |     unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) }
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `bldc_esc` (bin "bldc_esc" test) due to 1 previous error; 45 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2", kill_on_drop: false }`
[INFO] [stdout] 2947ac99ebe8bea2c1ded7ccac0159f294bec662b4b43a8e2ba154d599e7c4f2
